package cn.wuxq.sign;

import android.util.Base64;

public class BASE64 {

    /**
     * base64编码
     */
    public static String encode(String content) {
        return Base64.encodeToString(content.getBytes(), Base64.DEFAULT);
    }

    /**
     * base64解码
     */
    public static String decode(String content) {
        return new String(Base64.decode(content.getBytes(), Base64.DEFAULT));
    }
}
